package util;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

import one.GUIswing;

public class IOEmputil {
	
	
	public static void main(String[] args) {
		getDataFromFile();

	}
	
	public static String getDataFromFile() {
		StringBuffer sb=new StringBuffer();
		File f=new File("employee.txt");
		Scanner sc;
		try {
			sc = new Scanner(f,"UTF-8");
			while(sc.hasNextLine()) {
				String line=sc.nextLine();
				sb.append(line+"\n");
			}
			
			
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		System.out.println(sb);
		return sb.toString();
		
	}

}
